package com.aoip.telemetry.telemetry.entity.common;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 原始报文解析监测数据实体类
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/6/16 16:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("t_original_monitoring_data")
@ApiModel(description = "原始报文解析监测数据实体类")
public class OriginalMonitoringDataEntity implements Serializable {

    private static final long serialVersionUID = 4442447639249793150L;
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty("数据id")
    private Long id;

    @TableField(value = "original_message_id")
    @ApiModelProperty("原始报文数据id")
    private long originalMessageId;

    @TableField(value = "monitoring_data_identifier")
    @ApiModelProperty("监测数据标识")
    private String monitoringDataIdentifier;

    @TableField(value = "monitoring_data_value")
    @ApiModelProperty("监测数据值")
    private Object monitoringDataValue;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
